#pragma strict

var ball : Transform;
public var flag:boolean=true;

public var startingPos : Vector3;



function Start() {

	startingPos = ball.position;

}



function OnCollisionEnter(_other : Collision) 
{

	if(_other.gameObject.tag == "Ball") 
{
		_other.rigidbody.velocity = Vector3.zero;
		_other.transform.position = startingPos;
		flag=true;
	}


}